/*
 * This is the class that holds information about the drawer of the CD player
 *
 */
package edu.iyte.ceng431.hw03.cdplayer.model;

import java.util.Observable;

/**
 *
 * @author hp
 */
public class Drawer extends Observable {

    private boolean isOpen;

    public Drawer() {
        isOpen = false;
    }

    public boolean isOpen() {
        return isOpen;
    }

    //observe
    public void load() {
        isOpen = !isOpen;
        setChanged();
        notifyObservers(isOpen);
    }
}
